﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace ESOL.Common.Entity
{
    [DataContract]
    public class BaseDTO
    {
        [DataMember]
        public string ErrorCode { set; get; }
        [DataMember]
        public string ErrorMessage { set; get; }
        [DataMember]
        public int rowCount { set; get; } //用于查询时
    }

    [DataContract]
    public class DTOString : BaseDTO
    {
        [DataMember]
        public string result { set; get; }
    }

    [DataContract]
    public class DTOBool : BaseDTO
    {
        [DataMember]
        public bool result { set; get; }
    }

    [DataContract]
    public class DTODataTable : BaseDTO
    {
        [DataMember]
        public DataTable result { set; get; }
    }


    [DataContract]
    public class DTOHrEmployeeEntity : BaseDTO
    {
        [DataMember]
        public HrEmployeeEntity result { set; get; }
    }

     [DataContract]
    public class DTOHrAgentEntity : BaseDTO
    {
        [DataMember]
        public HrAgentEntity result { set; get; }
    }

     [DataContract]
     public class DTOByte : BaseDTO
     {
         [DataMember]
         public byte[] result { set; get; }
     }

    [DataContract]
     public class DTOHrContractHistory : BaseDTO
     {
         [DataMember]
         public List<HrContractHistoryEntity> result { set; get; }
     }

    [DataContract]
    public class DTOHrAttendanceCardLossEntity : BaseDTO
     {
        [DataMember]
        public HrAttendanceCardLossEntity result { set; get; }
        
     }

    [DataContract]
    public class DTOHrCarRentingEntity : BaseDTO
    {
        [DataMember]
        public HrCarRentingEntity result { set; get; }
    }

    [DataContract]
    public class DTOHrEmployeeIoRecordEntity : BaseDTO
    {
        [DataMember]
        public HrEmployeeIoRecordEntity result { set; get; }

    }

}
